<?php
/**
 * Holds class Mvc_View_Arbitrary
 *
 * @author daantimmer
 *
 * @package Library
 * @subpackage Mvc
 */

/**
 * Mvc_View_Arbitrary class is an output class used for arbitrary data.
 * No formatting is done, it'll just return everything that is set in
 * $this->_var["data"]
 *
 * @author daantimmer
 */
class Mvc_View_Arbitrary extends Mvc_View{
	
	/**
	 * @see Mvc_View_Interface::render()
	 */
	public function render(){
		if(isset($this->_var["data"]))	return $this->_var["data"];
		else
			throw new Exception("No data variable set for arbitrary view");
		return "";
	}
}